<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var body = document.querySelector("body");
      console.log(body);
      console.log(document.body);
      var htmlEle = document.querySelector("html");
      console.log(htmlEle);
      console.log(document.documentElement);
      var headEle = document.querySelector("head");
      console.log(headEle);
      console.log(document.head);
      var titleEle = document.querySelector("title");
      console.log(titleEle);
      console.log(document.title);
      console.log(titleEle.innerHTML);
    </script>
  </body>
</html>
